/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.GUI.treasury;

import ac.engin.archive.clients;
import ac.settings.dataModel;
import ac.settings.files;
import static ac.settings.rowsStatus.rowDeleted;
import ac.settings.sqlQuerys;
import ac.ui.controls.PCLPanel;
import ac.ui.custemItmes;
import ac.uitls.data;
import ac.uitls.propertiesOperation;
import java.awt.Component;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JPanel;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

/**
 *
 * @author ismail
 */
public class treasuryOut extends PCLPanel implements dataModel, sqlQuerys, files {

    /**
     * Creates new form treasuryIn
     */
    ac.engin.treasury.treasuryData t = new ac.engin.treasury.treasuryData();

    clients c = new clients();
    String Cid = "0";
    String tid = "0";
    data d = new data();

    String installNumber = "";
    ///editforcopy
    ac.engin.treasury.treasuryOut p = new ac.engin.treasury.treasuryOut();
    String MySQL_File = SQL_treasuryOut_File;
    String MySQL_All = SQL_treasuryOutAll;
    String MyREPORT_file_print = REPORT_treasury_Out_file_print;
    String MyREPORT_sataus_print = REPORT_treasury_Out_status;

    propertiesOperation po = new propertiesOperation();

    public treasuryOut(String status, String[] data) {
        initComponents();
        onLoad();

        jd_date.setDate(new Date());
        updateTemplat();
        Updatestatus(status, data);
        updateUlabels();
        jtxt_code.setTable(p.TabelString);
        deleteAttars();

        jp_retportNamestreasury.setBorder(javax.swing.BorderFactory.createTitledBorder(po.getWord("label.retportNamesTreasury")));
        jp_retportNamesOfficial.setBorder(javax.swing.BorderFactory.createTitledBorder(po.getWord("label.retportNamesOfficial")));
        jp_retportNamesClient.setBorder(javax.swing.BorderFactory.createTitledBorder(po.getWord("label.choseClientName")));

    }

    void deleteAttars() {
        p.deleteTabel = jtab_indexDelete;
        jtab_data.setTitleAt(3, po.getWord("label.deletefiles"));
        jtab_data.addChangeListener(new ChangeListener() {
            public void stateChanged(ChangeEvent e) {

                if (jtab_data.getSelectedIndex() == 3) {

                    p.indexdelete();
                }
            }
        });

    }

    //<editor-fold defaultstate="collapsed" desc="My Code">
    void EditemSearch() {

        String[] prossData = p.getRow("" + p.IndexID);
        Cid = prossData[1];
        tid = prossData[8];
        p.FrameDataupdateByid(p.IndexID);
        p.editStep1();
        jtab_data.setSelectedIndex(0);

    }

    void Updatestatus(String status, String[] data) {
        installNumber = "";
        if (status.equalsIgnoreCase("notsaved")) {
            ac.ui.utils u = new ac.ui.utils();
            p.addStep1();
            u.DataToComponents(p.dataComponents, -1, data, p.dataSaveFields, p.TabelString, null);
        } else if (status.equalsIgnoreCase("notsaved")) {
            p.Where = "`id`= '" + data[0] + "' ";

            p.serachTabel = jtab_sellserach;
            p.indexsearch();
            jtab_data.setSelectedIndex(1);

        } else if (status.equalsIgnoreCase("Installnotsaved")) {
            ac.ui.utils u = new ac.ui.utils();
            p.addStep1();
            String id = data[0];
            u.DataToComponents(p.dataComponents, -1, p.returnInstallData(id), p.dataSaveFields, p.TabelString, null);
            installNumber = data[0];

        } else if (status.equalsIgnoreCase("search")) {

            p.Where = "`" + data[0] + "`= '" + data[1] + "' ";

            p.serachTabel = jtab_sellserach;
            p.indexsearch();

            jtab_data.setSelectedIndex(1);
        }

    }

    void updateUlabels() {

        jtab_data.setTitleAt(1, po.getWord("label.thisSearch"));
        jtab_data.setTitleAt(0, po.getWord("label.home"));
        jtab_data.setTitleAt(2, po.getWord("label.threportes"));
        jp_retportTaype.setBorder(javax.swing.BorderFactory.createTitledBorder(po.getWord("label.reptype")));
        jp_retportcon.setBorder(javax.swing.BorderFactory.createTitledBorder(po.getWord("label.repoptions")));

    }

    void updateTemplat() {
        p.ActionsButtons.put("add", jbt_add);
        p.ActionsButtons.put("delete", jbt_delete1);
        p.ActionsButtons.put("edit", jbt_edit);

        p.dataComponents = new Component[]{jtxt_code, jcom_client, jcom_client, jd_date,
            jcom_official,
            jsp_amount,
            jta_more, jcom_paytype, jcom_treasury};

        p.dataSaveFields = new String[]{
            "code",
            "client_title", "client",
            "date", "Official", "amount",
            "more", "baytype", "treasury"};

        p.dataViewAS = new String[]{"id_hide",
            "_minWidth",
            "_maxWidth", "_hide",
            "date_midWidth", "addsTreeID_midWidth",
            "_midWidth", "_midWidth",
            "addsID_midWidth", "addsTreeID_midWidth"};
        p.dataSaveAs = new String[]{"", "text"};
        ///editforcopy
        p.TabelString = TABLE_treasury_out;

        p.panels = new JPanel[]{pcl_panelData};

        p.clerPanels(false);
        p.EnablePanels(false);

        ac.uitls.data d = new ac.uitls.data();
        ac.ui.utils.comBoxFills(jcom_search, p.dataSaveFields, d.updateArrayLang(p.dataSaveFields));

    }

//</editor-fold>
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jtab_data = new ac.ui.controls.PCLTabs();
        pcl_panelData = new ac.ui.controls.PCLPanel();
        jcom_client = new ac.ui.controls.PCLGetdata();
        pCLLabel18 = new ac.ui.controls.PCLLabel();
        jlb_balanceValue = new ac.ui.controls.PCLLabel();
        pCLLabel10 = new ac.ui.controls.PCLLabel();
        pCLLabel7 = new ac.ui.controls.PCLLabel();
        jsp_amount = new ac.ui.controls.PCLMoney();
        pCLLabel11 = new ac.ui.controls.PCLLabel();
        jcom_official = new ac.ui.controls.PCLGetdataFull();
        pCLLabel8 = new ac.ui.controls.PCLLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        jta_more = new ac.ui.controls.PCLTextarea();
        jcom_paytype = new ac.ui.controls.PCLcomboboxAdd();
        pCLLabel20 = new ac.ui.controls.PCLLabel();
        jd_date = new org.jdesktop.swingx.JXDatePicker();
        pCLLabel19 = new ac.ui.controls.PCLLabel();
        pCLToolbar2 = new ac.ui.controls.PCLToolbar();
        jbt_add = new ac.ui.controls.PCLButton();
        jbt_edit = new ac.ui.controls.PCLButton();
        jbt_print = new ac.ui.controls.PCLButton();
        jbt_cancel = new ac.ui.controls.PCLButton();
        jtxt_code = new ac.ui.controls.PCLCode();
        pCLLabel17 = new ac.ui.controls.PCLLabel();
        pCLLabel23 = new ac.ui.controls.PCLLabel();
        jcom_treasury = new ac.ui.controls.PCLGetdataFull();
        jlb_balancestatus = new ac.ui.controls.PCLLabel();
        pCLPanel2 = new ac.ui.controls.PCLPanel();
        pCLToolbar8 = new ac.ui.controls.PCLToolbar();
        jbt_edit1 = new ac.ui.controls.PCLButton();
        jbt_delete1 = new ac.ui.controls.PCLButton();
        jbt_print1 = new ac.ui.controls.PCLButton();
        jScrollPane5 = new javax.swing.JScrollPane();
        jtab_sellserach = new ac.ui.controls.PCLTable();
        pCLPanel3 = new ac.ui.controls.PCLPanel();
        jd_from = new ac.ui.controls.PCLDate();
        jd_To = new ac.ui.controls.PCLDate();
        pCLLabel21 = new ac.ui.controls.PCLLabel();
        pCLLabel22 = new ac.ui.controls.PCLLabel();
        pCLButton1 = new ac.ui.controls.PCLButton();
        jtxt_search = new ac.ui.controls.PCLTextField();
        jcom_search = new ac.ui.controls.PCLcomboBox();
        pCLLabel1 = new ac.ui.controls.PCLLabel();
        pCLLabel2 = new ac.ui.controls.PCLLabel();
        jPanel5 = new javax.swing.JPanel();
        jp_retportTaype = new ac.ui.controls.PCLPanel();
        jScrollPane8 = new javax.swing.JScrollPane();
        jtr_rep_type = new ac.ui.controls.PCLTree();
        jp_retportcon = new ac.ui.controls.PCLPanel();
        jd_rep_view = new ac.ui.controls.PCLButton();
        jd_rep_to = new ac.ui.controls.PCLDate();
        pCLLabel27 = new ac.ui.controls.PCLLabel();
        jd_rep_from = new ac.ui.controls.PCLDate();
        pCLLabel28 = new ac.ui.controls.PCLLabel();
        jlb_repTitle = new ac.ui.controls.PCLLabel();
        jp_retportNamesClient = new ac.ui.controls.PCLPanel();
        jcom_client1 = new ac.ui.controls.PCLGetdata();
        pCLLabel29 = new ac.ui.controls.PCLLabel();
        jp_retportNamestreasury = new ac.ui.controls.PCLPanel();
        jcom_treasury1 = new ac.ui.controls.PCLGetdataFull();
        pCLLabel24 = new ac.ui.controls.PCLLabel();
        jp_retportNamesOfficial = new ac.ui.controls.PCLPanel();
        jcom_official1 = new ac.ui.controls.PCLGetdataFull();
        pCLLabel12 = new ac.ui.controls.PCLLabel();
        pCLPanel4 = new ac.ui.controls.PCLPanel();
        jScrollPane11 = new javax.swing.JScrollPane();
        jtab_indexDelete = new ac.ui.controls.PCLTable();
        pCLToolbar9 = new ac.ui.controls.PCLToolbar();
        jbt_remove = new ac.ui.controls.PCLButton();
        jbt_removeAll = new ac.ui.controls.PCLButton();
        jbt_restore = new ac.ui.controls.PCLButton();
        jbt_restoreAll = new ac.ui.controls.PCLButton();

        jtab_data.setTabPlacement(javax.swing.JTabbedPane.RIGHT);

        jcom_client.setAddtype("clients");
        jcom_client.setRequired(true);
        jcom_client.setToolTipText("");
        jcom_client.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jcom_clientActionPerformed(evt);
            }
        });

        pCLLabel18.setText("jlb_client");

        jlb_balanceValue.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jlb_balanceValue.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jlb_balanceValue.setFontBold(true);
        jlb_balanceValue.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);

        pCLLabel10.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        pCLLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        pCLLabel10.setText("jlb_Balance");
        pCLLabel10.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);

        pCLLabel7.setText("jlb_amount");

        pCLLabel11.setText("jlb_Official");

        jcom_official.setRequired(true);
        jcom_official.setAddtype("official");
        jcom_official.setCategory(true);

        pCLLabel8.setText("jlb_more");

        jta_more.setColumns(20);
        jta_more.setRows(5);
        jScrollPane2.setViewportView(jta_more);

        jcom_paytype.setAddtype("paytape ");

        pCLLabel20.setText("jlb_payType");

        pCLLabel19.setText("jlb_date");

        pCLToolbar2.setRollover(true);

        jbt_add.setType("add");
        jbt_add.setFocusable(false);
        jbt_add.setText("jbt_add");
        jbt_add.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbt_addActionPerformed(evt);
            }
        });
        pCLToolbar2.add(jbt_add);

        jbt_edit.setType("edit");
        jbt_edit.setFocusable(false);
        jbt_edit.setText("jbt_edit");
        jbt_edit.setVerticalTextPosition(3);
        jbt_edit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbt_editActionPerformed(evt);
            }
        });
        pCLToolbar2.add(jbt_edit);

        jbt_print.setType("print");
        jbt_print.setFocusable(false);
        jbt_print.setText("jbt_print");
        jbt_print.setVerticalTextPosition(3);
        jbt_print.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbt_printActionPerformed(evt);
            }
        });
        pCLToolbar2.add(jbt_print);

        jbt_cancel.setText("jbt_cancel");
        jbt_cancel.setFocusable(false);
        jbt_cancel.setType("cancel");
        jbt_cancel.setVerticalTextPosition(3);
        jbt_cancel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbt_cancelActionPerformed(evt);
            }
        });
        pCLToolbar2.add(jbt_cancel);

        jtxt_code.setAuto(true);
        jtxt_code.setTable("treasury_in");

        pCLLabel17.setText("jlb_code");

        pCLLabel23.setText("jlb_treasury");

        jcom_treasury.setRequired(true);
        jcom_treasury.setAddtype("treasuryType");
        jcom_treasury.setCategory(true);
        jcom_treasury.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jcom_treasuryActionPerformed(evt);
            }
        });

        jlb_balancestatus.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jlb_balancestatus.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jlb_balancestatus.setFontBold(true);
        jlb_balancestatus.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);

        javax.swing.GroupLayout pcl_panelDataLayout = new javax.swing.GroupLayout(pcl_panelData);
        pcl_panelData.setLayout(pcl_panelDataLayout);
        pcl_panelDataLayout.setHorizontalGroup(
            pcl_panelDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pcl_panelDataLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pcl_panelDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pcl_panelDataLayout.createSequentialGroup()
                        .addComponent(pCLLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(33, 33, 33)
                        .addComponent(jScrollPane2)
                        .addContainerGap())
                    .addGroup(pcl_panelDataLayout.createSequentialGroup()
                        .addGroup(pcl_panelDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(pCLLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(pCLLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(pCLLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(pCLLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pcl_panelDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jcom_client, javax.swing.GroupLayout.DEFAULT_SIZE, 583, Short.MAX_VALUE)
                            .addComponent(jsp_amount, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(pcl_panelDataLayout.createSequentialGroup()
                                .addGroup(pcl_panelDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jcom_official, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jcom_paytype, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                .addGap(26, 26, 26)
                                .addGroup(pcl_panelDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(pCLLabel19, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(pCLLabel23, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(18, 18, 18)
                                .addGroup(pcl_panelDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jd_date, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jcom_treasury, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                        .addGroup(pcl_panelDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(pcl_panelDataLayout.createSequentialGroup()
                                .addGap(27, 27, 27)
                                .addComponent(pCLLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jtxt_code, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(pcl_panelDataLayout.createSequentialGroup()
                                .addGap(0, 0, Short.MAX_VALUE)
                                .addComponent(pCLLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(pcl_panelDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jlb_balanceValue, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jlb_balancestatus, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)))))))
            .addComponent(pCLToolbar2, javax.swing.GroupLayout.DEFAULT_SIZE, 878, Short.MAX_VALUE)
        );

        pcl_panelDataLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jlb_balanceValue, jtxt_code});

        pcl_panelDataLayout.setVerticalGroup(
            pcl_panelDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pcl_panelDataLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pcl_panelDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(pcl_panelDataLayout.createSequentialGroup()
                        .addGroup(pcl_panelDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jcom_client, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(pCLLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pcl_panelDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jsp_amount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(pCLLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(22, 22, 22)
                        .addGroup(pcl_panelDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                            .addComponent(pCLLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jcom_official, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(pCLLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jcom_treasury, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(pcl_panelDataLayout.createSequentialGroup()
                        .addComponent(jlb_balanceValue, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jlb_balancestatus, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(pCLLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(18, 18, 18)
                .addGroup(pcl_panelDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jd_date, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(pCLLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jcom_paytype, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(pCLLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(pcl_panelDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jtxt_code, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(pCLLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(21, 21, 21)
                .addGroup(pcl_panelDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(pCLLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 272, Short.MAX_VALUE))
                .addGap(42, 42, 42)
                .addComponent(pCLToolbar2, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        jtab_data.addTab("tab1", pcl_panelData);

        pCLToolbar8.setRollover(true);

        jbt_edit1.setType("edit");
        jbt_edit1.setFocusable(false);
        jbt_edit1.setText("jbt_edit");
        jbt_edit1.setVerticalTextPosition(3);
        jbt_edit1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbt_edit1ActionPerformed(evt);
            }
        });
        pCLToolbar8.add(jbt_edit1);

        jbt_delete1.setType("delete");
        jbt_delete1.setFocusable(false);
        jbt_delete1.setText("jbt_delete");
        jbt_delete1.setVerticalTextPosition(3);
        jbt_delete1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbt_delete1ActionPerformed(evt);
            }
        });
        pCLToolbar8.add(jbt_delete1);

        jbt_print1.setType("print");
        jbt_print1.setFocusable(false);
        jbt_print1.setText("jbt_print");
        jbt_print1.setVerticalTextPosition(3);
        jbt_print1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbt_print1ActionPerformed(evt);
            }
        });
        pCLToolbar8.add(jbt_print1);

        jtab_sellserach.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jtab_sellserachMouseClicked(evt);
            }
        });
        jtab_sellserach.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                jtab_sellserachKeyReleased(evt);
            }
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jtab_sellserachKeyPressed(evt);
            }
        });
        jScrollPane5.setViewportView(jtab_sellserach);

        pCLPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED));

        pCLLabel21.setText("jlb_From");

        pCLLabel22.setText("jlb_To");

        pCLButton1.setText("jbt_search");
        pCLButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pCLButton1ActionPerformed(evt);
            }
        });

        pCLLabel1.setText("jlb_searchIn");

        pCLLabel2.setText("jlb_searchWord");

        javax.swing.GroupLayout pCLPanel3Layout = new javax.swing.GroupLayout(pCLPanel3);
        pCLPanel3.setLayout(pCLPanel3Layout);
        pCLPanel3Layout.setHorizontalGroup(
            pCLPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pCLPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pCLPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(pCLButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jcom_search, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jd_from, javax.swing.GroupLayout.DEFAULT_SIZE, 247, Short.MAX_VALUE)
                    .addComponent(jd_To, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pCLPanel3Layout.createSequentialGroup()
                        .addGroup(pCLPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(pCLLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(pCLLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(pCLLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(pCLLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addComponent(jtxt_search, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        pCLPanel3Layout.setVerticalGroup(
            pCLPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pCLPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pCLLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jd_from, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pCLLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(9, 9, 9)
                .addComponent(jd_To, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(79, 79, 79)
                .addComponent(pCLLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jcom_search, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(pCLLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jtxt_search, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(30, 30, 30)
                .addComponent(pCLButton1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout pCLPanel2Layout = new javax.swing.GroupLayout(pCLPanel2);
        pCLPanel2.setLayout(pCLPanel2Layout);
        pCLPanel2Layout.setHorizontalGroup(
            pCLPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pCLPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pCLPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pCLPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(pCLToolbar8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 573, Short.MAX_VALUE))
                .addContainerGap())
        );
        pCLPanel2Layout.setVerticalGroup(
            pCLPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pCLPanel2Layout.createSequentialGroup()
                .addGroup(pCLPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pCLPanel2Layout.createSequentialGroup()
                        .addComponent(pCLToolbar8, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))
                    .addComponent(pCLPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );

        jtab_data.addTab("tab2", pCLPanel2);

        jp_retportTaype.setBorder(javax.swing.BorderFactory.createTitledBorder("aaaaa"));
        jp_retportTaype.setPreferredSize(new java.awt.Dimension(200, 282));

        jtr_rep_type.setAddtype("treasuryOut_reportes");
        javax.swing.tree.DefaultMutableTreeNode treeNode1 = new javax.swing.tree.DefaultMutableTreeNode("root");
        jtr_rep_type.setModel(new javax.swing.tree.DefaultTreeModel(treeNode1));
        jtr_rep_type.addTreeSelectionListener(new javax.swing.event.TreeSelectionListener() {
            public void valueChanged(javax.swing.event.TreeSelectionEvent evt) {
                jtr_rep_typeValueChanged(evt);
            }
        });
        jScrollPane8.setViewportView(jtr_rep_type);

        javax.swing.GroupLayout jp_retportTaypeLayout = new javax.swing.GroupLayout(jp_retportTaype);
        jp_retportTaype.setLayout(jp_retportTaypeLayout);
        jp_retportTaypeLayout.setHorizontalGroup(
            jp_retportTaypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane8, javax.swing.GroupLayout.DEFAULT_SIZE, 323, Short.MAX_VALUE)
        );
        jp_retportTaypeLayout.setVerticalGroup(
            jp_retportTaypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jp_retportTaypeLayout.createSequentialGroup()
                .addComponent(jScrollPane8)
                .addContainerGap())
        );

        jp_retportcon.setBorder(javax.swing.BorderFactory.createTitledBorder("aaaaa"));

        jd_rep_view.setType("viewReport");
        jd_rep_view.setText("jbt_viewReport");
        jd_rep_view.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jd_rep_viewActionPerformed(evt);
            }
        });

        pCLLabel27.setText("jlb_To");

        pCLLabel28.setText("jlb_From");

        javax.swing.GroupLayout jp_retportconLayout = new javax.swing.GroupLayout(jp_retportcon);
        jp_retportcon.setLayout(jp_retportconLayout);
        jp_retportconLayout.setHorizontalGroup(
            jp_retportconLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jd_rep_view, javax.swing.GroupLayout.DEFAULT_SIZE, 257, Short.MAX_VALUE)
            .addComponent(jd_rep_to, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jd_rep_from, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(jp_retportconLayout.createSequentialGroup()
                .addComponent(pCLLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 0, Short.MAX_VALUE))
            .addGroup(jp_retportconLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pCLLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jp_retportconLayout.setVerticalGroup(
            jp_retportconLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jp_retportconLayout.createSequentialGroup()
                .addGap(17, 17, 17)
                .addComponent(pCLLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jd_rep_from, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pCLLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jd_rep_to, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(62, 62, 62)
                .addComponent(jd_rep_view, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(235, 235, 235))
        );

        jlb_repTitle.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jlb_repTitle.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jlb_repTitle.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jlb_repTitle.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);

        jp_retportNamesClient.setBorder(javax.swing.BorderFactory.createTitledBorder("aaaaa"));

        jcom_client1.setAddtype("clients");
        jcom_client1.setToolTipText("");
        jcom_client1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jcom_client1ActionPerformed(evt);
            }
        });

        pCLLabel29.setText("jlb_client");

        javax.swing.GroupLayout jp_retportNamesClientLayout = new javax.swing.GroupLayout(jp_retportNamesClient);
        jp_retportNamesClient.setLayout(jp_retportNamesClientLayout);
        jp_retportNamesClientLayout.setHorizontalGroup(
            jp_retportNamesClientLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jp_retportNamesClientLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pCLLabel29, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addComponent(jcom_client1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        jp_retportNamesClientLayout.setVerticalGroup(
            jp_retportNamesClientLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jp_retportNamesClientLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pCLLabel29, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jcom_client1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jp_retportNamestreasury.setBorder(javax.swing.BorderFactory.createTitledBorder("aaaaa"));

        jcom_treasury1.setAddtype("treasuryType");
        jcom_treasury1.setCategory(true);
        jcom_treasury1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jcom_treasury1ActionPerformed(evt);
            }
        });

        pCLLabel24.setText("jlb_treasury");

        javax.swing.GroupLayout jp_retportNamestreasuryLayout = new javax.swing.GroupLayout(jp_retportNamestreasury);
        jp_retportNamestreasury.setLayout(jp_retportNamestreasuryLayout);
        jp_retportNamestreasuryLayout.setHorizontalGroup(
            jp_retportNamestreasuryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(pCLLabel24, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jp_retportNamestreasuryLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jcom_treasury1, javax.swing.GroupLayout.DEFAULT_SIZE, 216, Short.MAX_VALUE)
                .addContainerGap())
        );
        jp_retportNamestreasuryLayout.setVerticalGroup(
            jp_retportNamestreasuryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jp_retportNamestreasuryLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pCLLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jcom_treasury1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jp_retportNamesOfficial.setBorder(javax.swing.BorderFactory.createTitledBorder("aaaaa"));

        jcom_official1.setAddtype("official");
        jcom_official1.setCategory(true);

        pCLLabel12.setText("jlb_Official");

        javax.swing.GroupLayout jp_retportNamesOfficialLayout = new javax.swing.GroupLayout(jp_retportNamesOfficial);
        jp_retportNamesOfficial.setLayout(jp_retportNamesOfficialLayout);
        jp_retportNamesOfficialLayout.setHorizontalGroup(
            jp_retportNamesOfficialLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jp_retportNamesOfficialLayout.createSequentialGroup()
                .addComponent(pCLLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 0, Short.MAX_VALUE))
            .addComponent(jcom_official1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        jp_retportNamesOfficialLayout.setVerticalGroup(
            jp_retportNamesOfficialLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jp_retportNamesOfficialLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pCLLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jcom_official1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addComponent(jp_retportTaype, javax.swing.GroupLayout.DEFAULT_SIZE, 335, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jp_retportNamesClient, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jp_retportNamestreasury, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jp_retportNamesOfficial, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jp_retportcon, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addComponent(jlb_repTitle, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jlb_repTitle, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jp_retportTaype, javax.swing.GroupLayout.DEFAULT_SIZE, 467, Short.MAX_VALUE)
                    .addComponent(jp_retportcon, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGap(8, 8, 8)
                        .addComponent(jp_retportNamesOfficial, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jp_retportNamesClient, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jp_retportNamestreasury, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addContainerGap())))
        );

        jtab_data.addTab("tab3", jPanel5);

        jtab_indexDelete.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {

            }
        ));
        jtab_indexDelete.setType("index");
        jtab_indexDelete.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jtab_indexDeleteMouseClicked(evt);
            }
        });
        jtab_indexDelete.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                jtab_indexDeletePropertyChange(evt);
            }
        });
        jtab_indexDelete.addInputMethodListener(new java.awt.event.InputMethodListener() {
            public void inputMethodTextChanged(java.awt.event.InputMethodEvent evt) {
            }
            public void caretPositionChanged(java.awt.event.InputMethodEvent evt) {
                jtab_indexDeleteCaretPositionChanged(evt);
            }
        });
        jtab_indexDelete.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jtab_indexDeleteKeyPressed(evt);
            }
            public void keyReleased(java.awt.event.KeyEvent evt) {
                jtab_indexDeleteKeyReleased(evt);
            }
            public void keyTyped(java.awt.event.KeyEvent evt) {
                jtab_indexDeleteKeyTyped(evt);
            }
        });
        jtab_indexDelete.addVetoableChangeListener(new java.beans.VetoableChangeListener() {
            public void vetoableChange(java.beans.PropertyChangeEvent evt)throws java.beans.PropertyVetoException {
                jtab_indexDeleteVetoableChange(evt);
            }
        });
        jScrollPane11.setViewportView(jtab_indexDelete);

        pCLToolbar9.setRollover(true);

        jbt_remove.setType("remove");
        jbt_remove.setFocusable(false);
        jbt_remove.setText("jbt_remove");
        jbt_remove.setVerticalTextPosition(3);
        jbt_remove.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbt_removeActionPerformed(evt);
            }
        });
        pCLToolbar9.add(jbt_remove);

        jbt_removeAll.setType("removeAll");
        jbt_removeAll.setFocusable(false);
        jbt_removeAll.setText("jbt_removeAll");
        jbt_removeAll.setVerticalTextPosition(3);
        jbt_removeAll.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbt_removeAllActionPerformed(evt);
            }
        });
        pCLToolbar9.add(jbt_removeAll);

        jbt_restore.setType("restore");
        jbt_restore.setFocusable(false);
        jbt_restore.setText("jbt_restore");
        jbt_restore.setVerticalTextPosition(3);
        jbt_restore.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbt_restoreActionPerformed(evt);
            }
        });
        pCLToolbar9.add(jbt_restore);

        jbt_restoreAll.setType("restoreAll");
        jbt_restoreAll.setFocusable(false);
        jbt_restoreAll.setText("jbt_restoreAll");
        jbt_restoreAll.setVerticalTextPosition(3);
        jbt_restoreAll.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbt_restoreAllActionPerformed(evt);
            }
        });
        pCLToolbar9.add(jbt_restoreAll);

        javax.swing.GroupLayout pCLPanel4Layout = new javax.swing.GroupLayout(pCLPanel4);
        pCLPanel4.setLayout(pCLPanel4Layout);
        pCLPanel4Layout.setHorizontalGroup(
            pCLPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane11, javax.swing.GroupLayout.DEFAULT_SIZE, 878, Short.MAX_VALUE)
            .addComponent(pCLToolbar9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        pCLPanel4Layout.setVerticalGroup(
            pCLPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pCLPanel4Layout.createSequentialGroup()
                .addComponent(pCLToolbar9, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane11, javax.swing.GroupLayout.DEFAULT_SIZE, 468, Short.MAX_VALUE))
        );

        jtab_data.addTab("tab4", pCLPanel4);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jtab_data, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jtab_data, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
    }// </editor-fold>//GEN-END:initComponents

    private void jcom_clientActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcom_clientActionPerformed

        String pid = custemItmes.comBoxGetValue(jcom_client);
        if (pid != null && !pid.equals("") && !pid.equals("null") && !pid.equals(jcom_client.addvalue)) {
            Cid = pid;

            ac.GUI.index.updateCinfo(Cid, true);
            jlb_balanceValue.setText("" + c.getbalance(Cid));

            if (c.getbalance(Cid) > 0) {
                jlb_balancestatus.setText(po.getWord("label.BalanceD"));
            } else {

                jlb_balancestatus.setText(po.getWord("label.BalanceM"));
            }

        }

    }//GEN-LAST:event_jcom_clientActionPerformed

    private void jbt_addActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbt_addActionPerformed

        p.dataSaveValues = ac.ui.utils.getDataFromComss(p.dataComponents, p.dataSaveAs);

        if (p.setnewRetuenSataus(true, false, false, false, false) > 0) {

            String pid = custemItmes.comBoxGetValue(jcom_client);
            if (pid != null && !pid.equals("") && !pid.equals("null") && !pid.equals(jcom_client.addvalue)) {
                double am = Double.parseDouble(jsp_amount.getValue().toString());

                //Process
                p.doProcess(tid, Cid, am);
                //Process

                if (!installNumber.equalsIgnoreCase("")) {
                    ac.engin.treasury.Installment in = new ac.engin.treasury.Installment();

                    in.updateStatus(installNumber, "1", p.getlastID());

                    installNumber = "";
                }
                ac.GUI.index.updateCinfo(Cid, true);
                ac.GUI.index.updateTinfo(tid, true);
                jlb_balanceValue.setText("" + c.getbalance(Cid));

                if (c.getbalance(Cid) > 0) {
                    jlb_balancestatus.setText(po.getWord("label.BalanceD"));
                } else {

                    jlb_balancestatus.setText(po.getWord("label.BalanceM"));
                }

                c.IndexID = Integer.parseInt(p.getlastID());
            }
        }
    }//GEN-LAST:event_jbt_addActionPerformed


    private void jbt_editActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbt_editActionPerformed

        if (p.actionStatus == 1) {
            p.dataSaveValues = ac.ui.utils.getDataFromComss(p.dataComponents, p.dataSaveAs);

            String[] prossData = p.getRow("" + p.IndexID);
            Cid = prossData[1];
            tid = prossData[8];
            double am = Double.parseDouble(prossData[6]);

            if (p.seteditRetuenSataus(true, false, false) > 0) {
                p.reProcess(tid, Cid, am);
                prossData = p.getRow("" + p.IndexID);
                Cid = prossData[1];
                tid = prossData[8];
                am = Double.parseDouble(prossData[6]);
                p.doProcess(tid, Cid, am);

                ac.GUI.index.updateCinfo(Cid, true);
                ac.GUI.index.updateTinfo(tid, true);

            }

        }
    }//GEN-LAST:event_jbt_editActionPerformed

    private void jbt_printActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbt_printActionPerformed

        p.setPrint(MyREPORT_file_print, MySQL_File + c.IndexID);

    }//GEN-LAST:event_jbt_printActionPerformed

    private void jbt_cancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbt_cancelActionPerformed
        // TODO add your handling code here:

        p.setcancel();
    }//GEN-LAST:event_jbt_cancelActionPerformed

    private void jbt_edit1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbt_edit1ActionPerformed
        p.IndexID = Integer.parseInt(jtab_sellserach.getValue());

        EditemSearch();;
    }//GEN-LAST:event_jbt_edit1ActionPerformed

    private void jbt_delete1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbt_delete1ActionPerformed

        p.IndexID = Integer.parseInt(jtab_sellserach.getValue());

        String[] prossData = p.getRow("" + p.IndexID);
        Cid = prossData[1];
        tid = prossData[8];
        double am = Double.parseDouble(prossData[6]);

        if (p.setdeleteStatus(true, false, false) == 1) {

            //Process
            p.reProcess(tid, Cid, am);
            //Process  
            ac.GUI.index.updateCinfo(Cid, true);
            ac.GUI.index.updateTinfo(tid, true);

            pCLButton1ActionPerformed(null);
        };

    }//GEN-LAST:event_jbt_delete1ActionPerformed


    private void jbt_print1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbt_print1ActionPerformed

        p.setPrint(MyREPORT_file_print, MySQL_File + jtab_sellserach.getValue());

    }//GEN-LAST:event_jbt_print1ActionPerformed

    private void jtab_sellserachMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jtab_sellserachMouseClicked
        //  p.IndexID = Integer.parseInt(jtab_sellserach.getValue());

        ac.GUI.index.updateCinfo(p.getRow(jtab_sellserach.getValue())[1], true);


    }//GEN-LAST:event_jtab_sellserachMouseClicked

    private void pCLButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pCLButton1ActionPerformed

        p.Where = "`" + ac.ui.utils.comBoxGetValue(jcom_search) + "`like '%" + jtxt_search.getText() + "%' ";

        p.serachTabel = jtab_sellserach;
        p.indexsearch();

    }//GEN-LAST:event_pCLButton1ActionPerformed

    private void jcom_treasuryActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcom_treasuryActionPerformed

        String pid = custemItmes.comBoxGetValue(jcom_treasury);
        if (pid != null && !pid.equals("") && !pid.equals("null") && !pid.equals(jcom_client.addvalue)) {

            tid = pid;

            ac.GUI.index.updateTinfo(tid, true);
        }
    }//GEN-LAST:event_jcom_treasuryActionPerformed

    private void jtab_sellserachKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jtab_sellserachKeyPressed

    }//GEN-LAST:event_jtab_sellserachKeyPressed

    private void jtab_sellserachKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jtab_sellserachKeyReleased
        Cid = p.getRow(jtab_sellserach.getValue())[1];
        ac.GUI.index.updateCinfo(Cid, true);
    }//GEN-LAST:event_jtab_sellserachKeyReleased

    private void jtab_indexDeleteMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jtab_indexDeleteMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_jtab_indexDeleteMouseClicked

    private void jtab_indexDeletePropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jtab_indexDeletePropertyChange
        // TODO add your handling code here:
    }//GEN-LAST:event_jtab_indexDeletePropertyChange

    private void jtab_indexDeleteCaretPositionChanged(java.awt.event.InputMethodEvent evt) {//GEN-FIRST:event_jtab_indexDeleteCaretPositionChanged

    }//GEN-LAST:event_jtab_indexDeleteCaretPositionChanged

    private void jtab_indexDeleteKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jtab_indexDeleteKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_jtab_indexDeleteKeyPressed

    private void jtab_indexDeleteKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jtab_indexDeleteKeyReleased
        // TODO add your handling code here:
    }//GEN-LAST:event_jtab_indexDeleteKeyReleased

    private void jtab_indexDeleteKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jtab_indexDeleteKeyTyped
        // TODO add your handling code here:
    }//GEN-LAST:event_jtab_indexDeleteKeyTyped

    private void jtab_indexDeleteVetoableChange(java.beans.PropertyChangeEvent evt)throws java.beans.PropertyVetoException {//GEN-FIRST:event_jtab_indexDeleteVetoableChange

    }//GEN-LAST:event_jtab_indexDeleteVetoableChange

    private void jbt_removeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbt_removeActionPerformed

        p.setRemove(Integer.parseInt(d.IndexGetValue(p.deleteTabel)));
        p.indexdelete();
    }//GEN-LAST:event_jbt_removeActionPerformed

    private void jbt_removeAllActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbt_removeAllActionPerformed
        p.setRemoveAll();
        p.indexdelete();
    }//GEN-LAST:event_jbt_removeAllActionPerformed
    void domyporess(String id) {
        String[] prossData = p.getRow(id);
        Cid = prossData[1];
        tid = prossData[8];
        Double am = Double.parseDouble(prossData[6]);
        p.doProcess(tid, Cid, am);

        ac.GUI.index.updateCinfo(Cid, true);
        ac.GUI.index.updateTinfo(tid, true);
    }
    private void jbt_restoreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbt_restoreActionPerformed
        p.setRestore(Integer.parseInt(d.IndexGetValue(p.deleteTabel)));
        domyporess(d.IndexGetValue(p.deleteTabel));

        p.indexdelete();
    }//GEN-LAST:event_jbt_restoreActionPerformed

    private void jbt_restoreAllActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbt_restoreAllActionPerformed
        try {
            ac.lib.database.operations db = new ac.lib.database.operations();

            db.setOpenCon();

            ResultSet r = db.getDataWithOutCon(p.TabelString, "*", "rowstatus ='" + rowDeleted + "'");
            while (r.next()) {

                domyporess(r.getString("id"));

            }

            db.setCloseCon();

            p.setRestoreAll();
            p.indexdelete();
        } catch (SQLException ex) {
            Logger.getLogger(otherEx.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_jbt_restoreAllActionPerformed

    boolean showRepOfficial = false;
    boolean showRepClient = false;
    boolean showRepTreasury = false;

    void updaterepPnales() {

        jp_retportNamesOfficial.setVisible(false);
        jp_retportNamesClient.setVisible(false);

        jp_retportNamestreasury.setVisible(false);

        if (showRepOfficial) {
            jp_retportNamesOfficial.setVisible(true);
        }

        if (showRepClient) {
            jp_retportNamesClient.setVisible(true);
        }

        if (showRepTreasury) {
            jp_retportNamestreasury.setVisible(true);
        }

        showRepOfficial = false;
        showRepClient = false;

        showRepTreasury = false;
    }


    private void jtr_rep_typeValueChanged(javax.swing.event.TreeSelectionEvent evt) {//GEN-FIRST:event_jtr_rep_typeValueChanged
        updaterepPnales();
        jlb_repTitle.setText(jtr_rep_type.getText());

        String rtype = jtr_rep_type.getValue();

        /*

         166	حالة الخزينة	""	treasuryIn_reportes	0	0	0
         167	بيان وارد الخازينة	""	treasuryIn_reportes	0	0	0
         168	بيان وارد الخزينة لعميل	""	treasuryIn_reportes	0	0	0
         169	بيان وارد الخزينة  لعميل فى خزينة	""	treasuryIn_reportes	0	0	0

         */
        switch (rtype) {

            case "174":
                showRepOfficial = true;
                showRepClient = true;
                showRepTreasury = true;
                break;

        }
        updaterepPnales();
    }//GEN-LAST:event_jtr_rep_typeValueChanged

    private void jd_rep_viewActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jd_rep_viewActionPerformed

        /*

         173	حالة الخزينة	""	treasuryIn_reportes	0	0	0
         167	بيان وارد الخازينة	""	treasuryIn_reportes	0	0	0
         168	بيان وارد الخزينة لعميل	""	treasuryIn_reportes	0	0	0
         169	بيان وارد الخزينة  لعميل فى خزينة	""	treasuryIn_reportes	0	0	0

         */
        ac.engin.treasury.treasuryData dm = new ac.engin.treasury.treasuryData();

        String rtype = jtr_rep_type.getValue();
        //String where = "";
        switch (rtype) {
            case "174":

                p.reportViewForAll(jcom_client1.getValue(), jcom_treasury1.getValue(), jcom_official1.getValue(), jd_rep_from.getDate(), jd_rep_to.getDate());
                break;
            case "173":

                dm.reportTreasuryStatus();
                break;

        }
    }//GEN-LAST:event_jd_rep_viewActionPerformed

    private void jcom_client1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcom_client1ActionPerformed

    }//GEN-LAST:event_jcom_client1ActionPerformed

    private void jcom_treasury1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcom_treasury1ActionPerformed

    }//GEN-LAST:event_jcom_treasury1ActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel jPanel5;
    private javax.swing.JScrollPane jScrollPane11;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane8;
    private ac.ui.controls.PCLButton jbt_add;
    private ac.ui.controls.PCLButton jbt_cancel;
    private ac.ui.controls.PCLButton jbt_delete1;
    private ac.ui.controls.PCLButton jbt_edit;
    private ac.ui.controls.PCLButton jbt_edit1;
    private ac.ui.controls.PCLButton jbt_print;
    private ac.ui.controls.PCLButton jbt_print1;
    private ac.ui.controls.PCLButton jbt_remove;
    private ac.ui.controls.PCLButton jbt_removeAll;
    private ac.ui.controls.PCLButton jbt_restore;
    private ac.ui.controls.PCLButton jbt_restoreAll;
    private ac.ui.controls.PCLGetdata jcom_client;
    private ac.ui.controls.PCLGetdata jcom_client1;
    private ac.ui.controls.PCLGetdataFull jcom_official;
    private ac.ui.controls.PCLGetdataFull jcom_official1;
    private ac.ui.controls.PCLcomboboxAdd jcom_paytype;
    private ac.ui.controls.PCLcomboBox jcom_search;
    private ac.ui.controls.PCLGetdataFull jcom_treasury;
    private ac.ui.controls.PCLGetdataFull jcom_treasury1;
    private ac.ui.controls.PCLDate jd_To;
    private org.jdesktop.swingx.JXDatePicker jd_date;
    private ac.ui.controls.PCLDate jd_from;
    private ac.ui.controls.PCLDate jd_rep_from;
    private ac.ui.controls.PCLDate jd_rep_to;
    private ac.ui.controls.PCLButton jd_rep_view;
    private ac.ui.controls.PCLLabel jlb_balanceValue;
    private ac.ui.controls.PCLLabel jlb_balancestatus;
    private ac.ui.controls.PCLLabel jlb_repTitle;
    private ac.ui.controls.PCLPanel jp_retportNamesClient;
    private ac.ui.controls.PCLPanel jp_retportNamesOfficial;
    private ac.ui.controls.PCLPanel jp_retportNamestreasury;
    private ac.ui.controls.PCLPanel jp_retportTaype;
    private ac.ui.controls.PCLPanel jp_retportcon;
    private ac.ui.controls.PCLMoney jsp_amount;
    private ac.ui.controls.PCLTextarea jta_more;
    private ac.ui.controls.PCLTabs jtab_data;
    private ac.ui.controls.PCLTable jtab_indexDelete;
    private ac.ui.controls.PCLTable jtab_sellserach;
    private ac.ui.controls.PCLTree jtr_rep_type;
    private ac.ui.controls.PCLCode jtxt_code;
    private ac.ui.controls.PCLTextField jtxt_search;
    private ac.ui.controls.PCLButton pCLButton1;
    private ac.ui.controls.PCLLabel pCLLabel1;
    private ac.ui.controls.PCLLabel pCLLabel10;
    private ac.ui.controls.PCLLabel pCLLabel11;
    private ac.ui.controls.PCLLabel pCLLabel12;
    private ac.ui.controls.PCLLabel pCLLabel17;
    private ac.ui.controls.PCLLabel pCLLabel18;
    private ac.ui.controls.PCLLabel pCLLabel19;
    private ac.ui.controls.PCLLabel pCLLabel2;
    private ac.ui.controls.PCLLabel pCLLabel20;
    private ac.ui.controls.PCLLabel pCLLabel21;
    private ac.ui.controls.PCLLabel pCLLabel22;
    private ac.ui.controls.PCLLabel pCLLabel23;
    private ac.ui.controls.PCLLabel pCLLabel24;
    private ac.ui.controls.PCLLabel pCLLabel27;
    private ac.ui.controls.PCLLabel pCLLabel28;
    private ac.ui.controls.PCLLabel pCLLabel29;
    private ac.ui.controls.PCLLabel pCLLabel7;
    private ac.ui.controls.PCLLabel pCLLabel8;
    private ac.ui.controls.PCLPanel pCLPanel2;
    private ac.ui.controls.PCLPanel pCLPanel3;
    private ac.ui.controls.PCLPanel pCLPanel4;
    private ac.ui.controls.PCLToolbar pCLToolbar2;
    private ac.ui.controls.PCLToolbar pCLToolbar8;
    private ac.ui.controls.PCLToolbar pCLToolbar9;
    private ac.ui.controls.PCLPanel pcl_panelData;
    // End of variables declaration//GEN-END:variables
}
